package com.yyysj.system.domain;

import lombok.Data;

@Data
public class LoginResult {

    private Integer code;

    private String msg;

    private Object data;

    public static LoginResult ok() {
        LoginResult result = new LoginResult();
        result.setCode(200);
        result.setMsg("登录成功");
        return result;
    }

    public static LoginResult error(String msg) {
        LoginResult result = new LoginResult();
        result.setCode(500);
        result.setMsg(msg);
        return result;
    }
}
